import 'package:flutter_axrjc/datasource/network/bean/SelectOption.dart';
import 'package:flutter_axrjc/widget/single_select_dialog/SingleSelectDialog.dart';
import 'package:get/get.dart';

/// 单选｜多选对话框
Future<dynamic> showSelectionDialog(
  List<SelectOption> list, {
  title = "请选择",
  messageTitle = "",
  keywords = "",
  multi = false,
  required = false,
  showCancelBtn = false,
}) async {
  return await Get.dialog(SingleSelectDialog(
    keywords: keywords,
    list: list,
    title: title,
    messageTitle: messageTitle,
    required: required,
    multi: multi,
    showCancelBtn: showCancelBtn,
  ));
}
